<view class="main">

    <view class="card">
         <van-cell-group class="input">
            <van-field
                value="{{ name }}"
                placeholder="请输入行动"
                border="{{ false }}"
                bind:change="onChangeName"
                label="行动名"
            />
        </van-cell-group>
        <!-- <van-cell-group class="input">
            <van-field
                value="{{ userGroup }}"
                placeholder="请输入分组"
                border="{{ false }}"
                bind:change="onChange"
                label="分组"
                bind:click-input="setGroup"
                disabled
            />
        </van-cell-group>
        -->
        <van-cell-group class="input">
            <van-field
                value="{{ antistopOne }}"
                placeholder="请输入关键词"
                border="{{ false }}"
                bind:change="onChangeAntistopOne"
                label="关键词1"
                disabled="{{dialogShow}}"
            />
        </van-cell-group>
        <van-cell-group class="input">
            <van-field
                value="{{ antistopTwo }}"
                placeholder="请输入关键词"
                border="{{ false }}"
                bind:change="onChangeAntistopTwo"
                label="关键词2"
                disabled="{{dialogShow}}"
            />
        </van-cell-group>
         <van-cell-group class="input">
            <van-field
                value="{{ antistopExtra }}"
                placeholder="请输入关键词"
                border="{{ false }}"
                bind:change="onChangeAntistopExtra"
                label="额外关键词"
                disabled="{{dialogShow}}"
            />
        </van-cell-group>
        <view qq:if="{{admin}}" style="color:#fff">关键词:</view>
        <view style="margin-bottom:50rpx">
            <view qq:for="{{act}}" style="color:#fff;" qq:if="{{admin}}" qq:key="{{index}}">
                {{index}} : {{item}}
            </view>
        </view>
        <view style="color:#fff">若填写行动名则代表创建新行动，不写则代表为本次行动添加分组条件,如一组有多个活动可单独填写额外关键词(注：行动名不得含有.)</view>
        <view class="affirm">
            <van-button type="primary" class="button" bind:click='affirm'>确认</van-button>
        </view>
    </view>
    <van-toast id="van-toast" />
    <van-popup show="{{ show }}" bind:close="onClose" position='bottom'>
        <van-nav-bar
            title="分组"
            left-text="返回"
            right-text="确认"
            left-arrow
            bind:click-left="onClickLeft"
            bind:click-right="onClickRight"
        />
        <van-picker columns="{{ columns }}" bind:change="onChange" />
    </van-popup>
    <van-dialog id="van-dialog" zIndex="{{30000}}"/>
</view>
